from django.http import HttpResponse

from tasks.async_tasks import send_mail


def receive_email(request):
    # 异步发送邮件
    send_mail.delay()
    return HttpResponse('success')
